import { get, post } from './http'

export const reqregister = (params) => post('/api/register', params)
export const reqlogin = (params) => post('/api/login', params)
export const reqgetnew = (params) => get('/api/getnew', params)
export const reqgetgroupon = (params) => get('/api/getgroupon', params)
export const reqgetindexgoods = (params) => get('/api/getindexgoods', params)
export const reqgetgoodsinfo = (params) => get('/api/getgoodsinfo', params)

//购物车
export const reqcartadd = (params) => post('/api/cartadd', params);
export const reqcartdelete = (params) => post('/api/cartdelete', params);
export const reqcartedit = (params) => post('/api/cartedit', params);
export const reqcartlist = (params) => get('/api/cartlist', params)

//分类
export const reqgetcate = (params) => get('/api/getcate', params)
export const reqgetgoods = (params) => get('/api/getgoods', params)

//优惠券
export const reqgetcoupon = (params) => get('/api/getcoupon', params)

//轮播图
export const reqgetbanner = (params) => get('/api/getbanner', params)

